package cn.bdqn.third;

/**
 * @Description TODO
 * @Date 2020/2/12 9:37
 * @Created by 张三三
 */
import java.awt.*;

public class GreyInk implements Ink{
    public String getColor(int r, int g, int b) {
        int c = (r+b+g)/3;
        Color color = new Color(c,c,c);
        return "#"+Integer.toHexString(color.getRGB()).substring(2);
    }
}